﻿namespace Blaze.Editor.UI
{
    using Blaze.UI;
    using UnityEditor;
    using UnityEditor.UI;
    using UnityEngine;

    [CustomEditor(typeof (FXImage), true)]
    public class FXImageInspector : ImageEditor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            EditorGUILayout.Space();

            var fxImage = (FXImage) target;
            fxImage.Material = (Material) EditorGUILayout.ObjectField("Material", fxImage.Material, typeof (Material), false);
            fxImage.ETC1Material = (Material) EditorGUILayout.ObjectField("ETC1Material(ETC1)", fxImage.ETC1Material, typeof (Material), false);
        }
    }
}